package org.budo.ldap;

import javax.naming.NamingException;
import javax.naming.directory.Attribute;

/**
 * @author lmw
 */
public class LdapUtil extends com.ewei.support.ldap.LdapUtil {
    public static Object getAttributeValue(Attribute attribute) {
        try {
            if (attribute == null) {
                return null;
            }
            return attribute.get();
        } catch (NamingException e) {
            throw new RuntimeException(e);
        }
    }
}